package com.yunsc.system.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.yunsc.common.serializer.TimestampToDateSerializer;
import lombok.Data;

import java.io.Serializable;

/**
 * 商家后台菜单记录表
 * 
 * @author adan
 * @email 2028038953@qq.com
 * @date 2024-04-22 11:35:50
 */
@Data
@TableName("yunsc_store_menu")
public class YunscStoreMenuEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 菜单ID
	 */
	@TableId
	private Integer menuId;
	/**
	 * 菜单类型(10页面 20操作)
	 */
	private Integer type;
	/**
	 * 菜单名称
	 */
	private String name;
	/**
	 * 菜单路径(唯一)
	 */
	private String path;
	/**
	 * 是否为页面(1是 0否)
	 */
	private Integer isPage;
	/**
	 * 功能模块key
	 */
	private String moduleKey;
	/**
	 * 操作标识
	 */
	private String actionMark;
	/**
	 * 上级菜单ID
	 */
	private Integer parentId;
	/**
	 * 排序(数字越小越靠前)
	 */
	private Integer sort;
	/**
	 * 创建时间
	 */
	@TableField(fill = FieldFill.INSERT)
	@JsonSerialize(using = TimestampToDateSerializer.class)
	private Integer createTime;
	/**
	 * 更新时间
	 */
	@TableField(fill = FieldFill.INSERT_UPDATE)
	@JsonSerialize(using = TimestampToDateSerializer.class)
	private Integer updateTime;

}
